
//- This Source Code Form is subject to the terms of the Mozilla Public
//- License, v. 2.0. If a copy of the MPL was not distributed with this
//- file, You can obtain one at http://mozilla.org/MPL/2.0/.
//-
//- Copyright (c) 2021-present Kaleidos Ventures SL

span.detail-status-inner.js-edit-status(
    class!="<% if(editable){ %>clickable<% }%>"
)
    span(style!="background-color:<%- status.color %>")
        span.e2e-status <%- status.name %>
        <% if(editable){ %>
        tg-svg(svg-icon="icon-arrow-down")
        <% }%>

ul.pop-status.popover
    <% _.each(statuses, function(st) { %>
    li
        a.status(
            href=""
            title!="<%- st.name %>"
            data-status-id!="<%- st.id %>"
        )
            span.item-text <%- st.name %>
    <% }); %>
